package org.summerframework.component.note.code.service;

import org.summerframework.component.mybatisplus.BasePlusQueryService;
import org.summerframework.component.note.code.service.dto.NoteCodeRecordDTO;
import org.summerframework.component.note.code.service.dto.NoteCodeRecordQueryDTO;

public interface NoteCodeRecordService extends BasePlusQueryService<NoteCodeRecordDTO, NoteCodeRecordQueryDTO> {
    Integer selectCountTodayByIp(String ip);

    Integer[] selectCountByAccount(String account);

    NoteCodeRecordDTO selectByLastAccount(String account, Long templateId);

    NoteCodeRecordDTO selectByLastAccount(String account, Long templateId, String code);
}
